//package gui;
//
//import java.awt.BorderLayout;
//import java.awt.FlowLayout;
//
//import javax.swing.JButton;
//import javax.swing.JDialog;
//import javax.swing.JPanel;
//import javax.swing.border.EmptyBorder;
//import com.jgoodies.forms.layout.FormLayout;
//import com.jgoodies.forms.layout.ColumnSpec;
//import com.jgoodies.forms.layout.RowSpec;
//import com.jgoodies.forms.factories.FormFactory;
//
//import driver.MainDriver;
//
//import javax.swing.JLabel;
//import java.awt.Font;
//import java.awt.event.MouseEvent;
//
//import javax.swing.JTextField;
//import java.awt.Color;
//
//public class SpecifyProjectAndASLFileWindow extends JDialog {
//
//    private final JPanel contentPanel = new JPanel();
//    private JTextField textField;
//    private JTextField textField_1;
//    private JTextField textField_2;
//
////    /**
////     * Launch the application.
////     */
////    public static void main(String[] args) {
////        try {
////            SpecifyProjectAndASLFileWindow dialog = new SpecifyProjectAndASLFileWindow();
////            dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
////            dialog.setVisible(true);
////        } catch (Exception e) {
////            e.printStackTrace();
////        }
////    }
//
//    /**
//     * Create the dialog.
//     */
//    public SpecifyProjectAndASLFileWindow(String errorMessage) {
//        setTitle("Choose Project and Plan Library");
//        setBounds(100, 100, 450, 300);
//        getContentPane().setLayout(new BorderLayout());
//        contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
//        getContentPane().add(contentPanel, BorderLayout.CENTER);
//        contentPanel.setLayout(new FormLayout(new ColumnSpec[] {
//                FormFactory.RELATED_GAP_COLSPEC,
//                FormFactory.DEFAULT_COLSPEC,
//                FormFactory.RELATED_GAP_COLSPEC,
//                FormFactory.DEFAULT_COLSPEC,
//                FormFactory.RELATED_GAP_COLSPEC,
//                ColumnSpec.decode("default:grow"),},
//            new RowSpec[] {
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,
//                FormFactory.RELATED_GAP_ROWSPEC,
//                FormFactory.DEFAULT_ROWSPEC,}));
//        {
//            JLabel lblNewLabel = new JLabel("Project:");
//            lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 11));
//            contentPanel.add(lblNewLabel, "2, 2");
//        }
//        {
//            textField = new JTextField();
//            contentPanel.add(textField, "6, 2, fill, default");
//            textField.setColumns(10);
//        }
//        {
//            JLabel lblAslFileName = new JLabel("ASL File Name:");
//            lblAslFileName.setFont(new Font("Tahoma", Font.BOLD, 11));
//            contentPanel.add(lblAslFileName, "2, 6");
//        }
//        {
//            textField_1 = new JTextField();
//            contentPanel.add(textField_1, "6, 6, fill, default");
//            textField_1.setColumns(10);
//        }
//        {
//            JLabel lblStateTransitionDiagram = new JLabel("State Transition Diagram:");
//            lblStateTransitionDiagram.setFont(new Font("Tahoma", Font.BOLD, 11));
//            contentPanel.add(lblStateTransitionDiagram, "2, 10");
//        }
//        {
//            textField_2 = new JTextField();
//            contentPanel.add(textField_2, "6, 10, fill, default");
//            textField_2.setColumns(10);
//        }
//        {
//            JLabel lblNewLabel_1 = new JLabel("");
//            lblNewLabel_1.setForeground(Color.RED);
//            if(errorMessage != null && !errorMessage.trim().isEmpty()) {
//                lblNewLabel_1.setText(errorMessage);
//            }
//            contentPanel.add(lblNewLabel_1, "2, 16, 5, 1");
//        }
//        {
//            JPanel buttonPane = new JPanel();
//            buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
//            getContentPane().add(buttonPane, BorderLayout.SOUTH);
//            {
//                JButton okButton = new JButton("OK");
//                okButton.setActionCommand("OK");
//                buttonPane.add(okButton);
//                getRootPane().setDefaultButton(okButton);
//                
//                
//                okButton.addMouseListener(new java.awt.event.MouseAdapter() {
//                    public void mouseClicked(java.awt.event.MouseEvent evt) {
//                        okButtonClicked(evt);
//                    }
//                });
//            }
//            {
//                JButton cancelButton = new JButton("Cancel");
//                cancelButton.setActionCommand("Cancel");
//                buttonPane.add(cancelButton);
//                cancelButton.addMouseListener(new java.awt.event.MouseAdapter() {
//                    public void mouseClicked(java.awt.event.MouseEvent evt) {
//                        cancelButtonClicked(evt);
//                    }
//                });
//            }
//        }
//        
//
//    }
//
//    protected void cancelButtonClicked(MouseEvent evt) {
//        this.dispose();
//        
//    }
//
//    protected void okButtonClicked(MouseEvent evt) {
//        String project = textField.getText();
//        String aslFileName = textField_1.getText();
//        String stateTransition = textField_2.getText();
//        MainDriver main = new MainDriver(project, aslFileName, stateTransition);
//        main.run();
//        this.dispose();
//    }
//    
//
//
//}
